package zzg.study.protocol.response;

import lombok.Data;
import lombok.EqualsAndHashCode;
import zzg.study.protocol.Packet;

import static zzg.study.protocol.command.Command.LOGIN_RESPONSE;

/**
 * @Classname LoginResponsePacket
 * @Description 登录响应packet
 * @Date 2023/12/3 20:48
 * @Author zhuzhenguo
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class LoginResponsePacket extends Packet {

    private String userId;

    private String userName;

    private boolean success;

    private String reason;


    @Override
    public Byte getCommand() {

        return LOGIN_RESPONSE;
    }
}
